home *** CD-ROM | disk | FTP | other *** search
- //
- // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
- //
- // fxc /T ps_2_0 /DCGC=0 /Fc ..\..\WorkDir\Shaders\ps\ps2_0_sun.psh
- // ps2_0_sun.cg
- //
- //
- // Parameters:
- //
- // float4 $SunColor;
- // float4 $SunShininess;
- // float4 $SunStrength;
- //
- //
- // Registers:
- //
- // Name Reg Size
- // ------------- ----- ----
- // $SunStrength c0 1
- // $SunShininess c1 1
- // $SunColor c2 1
- //
-
- ps_2_0
- dcl t0
- dcl t1
- dp4 r0.w, t0, t0
- rsq r0.w, r0.w
- mul r0, r0.w, t0
- dp4_sat r0.w, r0, t1
- log r0.w, r0.w
- mul r0, r0.w, c1
- exp r0.x, r0.x
- exp r0.y, r0.y
- exp r0.z, r0.z
- exp r0.w, r0.w
- mul r0, r0, c0
- mul r0, r0, c2
- mov oC0, r0
-
- // approximately 13 instruction slots used
-